<template>
    <div class="section-wrap">
        <!-- 头部 -->
         <div class="headerBox">
        <div class="header">
            <x-icon type="ios-arrow-left" size="" class="icon-white" @click="goBack"></x-icon>合理缺项
        </div>
        </div>
        <div class="form-section" style="margin-top: 40px;">
            <div class="details">
                <div class="details_top">
                    <p>合理缺项数量：{{result.count}}项</p>
                </div>
                <tree-classify :classify-list="result.divisionClassList" :keyList="result.recordItemList" :canAudit="false"></tree-classify>
            </div>

            <!-- <div class="btns_div">
                <a class="saveBtn">保 存</a>
            </div> -->
        </div>
    </div>
</template>
<script>
import treeClassify from "@commonComponents/treeClassify";
export default {
  data() {
    return {
      result: {
        count: 0,
        divisionClassList: [],
        recordItemList: []
      },
      paramitem: {
        recordId: ""
      }
    };
  },
  components: {treeClassify},
  created() {
    this.getItem();
  },
  methods: {
    getItem() {
      this.paramitem.recordId = this.$route.query.id;
      this.$axiosAjax
        .GetRecordMissingItem(this.paramitem)
        .then(res => {
          if (res.data.success == true) {
            this.result = res.data.result;
          }
        })
        .catch(err => {});
    },
    goBack() {
      this.$router.go(-1);
    }
  }
};
</script>
<style lang="less" scoped>
.details {
  .details_top {
    border-bottom: 10px solid #ebeef2;
    height: 55px;
    line-height: 45px;
    padding-right: 20px;
    padding-left: 20px;
    background: #fff;
    p {
      float: left;
      color: #469b7a;
      font-size: 14px;
      font-weight: bold;
    }
    .vux-x-icon {
      fill: #999;
      float: right;
      margin-top: 12px;
    }
  }
  .details_list {
    .vux-x-icon {
      fill: #999;
      float: right;
      margin-top: 16px;
    }
    li {
      > div {
        height: 54px;
        line-height: 54px;
        padding-right: 20px;
      }
    }
    > li {
      justify-content: space-between;
      padding-left: 20px;
      border-bottom: 5px solid #ebeef2;
      > div {
        font-weight: bold;
        font-size: 16px;
      }
      .list_2 {
        li {
          border-top: 1px solid #ebeef2;
          > div {
            font-weight: bold;
            font-size: 14px;
          }
        }
      }
      .list_3 {
        li {
          font-size: 14px;
          text-indent: 2em;
          height: 55px;
          line-height: 54px;
          border-top: 1px solid #ebeef2;
          padding-right: 20px;
          > p {
            display: block;
            height: 15px;
            width: 15px;
            float: right;
            font-size: 12px;
            color: #fff;
            border-radius: 50%;
            background: #469b7a;
            margin-top: 19px;
            line-height: 17px;
            text-align: center;
            text-indent: 0;
          }
        }
      }
    }
  }
}
.btns_div {
  background: #ebeef2;
  padding: 30px 20px 55px;
  justify-content: center;
  display: flex;
  a {
    height: 40px;
    border-radius: 20px;
    display: inline-block;
    width: 200px;
    text-align: center;
    line-height: 40px;
    color: #fff;
  }
  .saveBtn {
    background: #469b7a;
  }
  .submitBtn {
    background: #15bd84;
  }
}
</style>
